export function filterData(arr:any[],curRole:string):any[]{
    return arr.filter(item=>!item.roles || item.roles.includes(curRole)).map(item=>{
        const m={
            ...item
        }
        if(item.children){
            m.children=filterData(item.children,curRole)
        }
        return m
    })
}